package com.msun.service;



import com.msun.entity.PageResult;
import com.msun.entity.QueryPageBean;
import com.msun.pojo.Menu;
import com.msun.pojo.Permission;
import com.msun.pojo.Role;

import java.util.List;

public interface RoleService {
    PageResult pageQuery(QueryPageBean queryPageBean);
    Role findById(Integer id);
    void add(Role role, Integer[] permissionIds, Integer[] menuIds);
    List<Permission> findAllPermissions();
    List<Menu> findAllMenus();
    List<Integer> findMenuIdsByRoleId(Integer id);
    List<Integer> findPermissionIdsByRoleId(Integer id);
    void edit(Role role, Integer[] permissionIds, Integer[] menuIds);
    void delete(Integer id);
    List<Role> findAllCheckGroupByUserId(Integer userId);
}
